package me.a_littlesquid.whitelist;

import me.a_littlesquid.whitelist.command.wl;
import me.a_littlesquid.whitelist.events.playerjoin;
import org.bukkit.ChatColor;
import org.bukkit.plugin.java.JavaPlugin;

public final class Whitelist extends JavaPlugin {

    @Override
    public void onEnable() {
        // Plugin startup logic
        saveDefaultConfig();
        getCommand("wl").setExecutor(new wl());
        getCommand("wl").setTabCompleter(new wl());
        getServer().getPluginManager().registerEvents(new playerjoin(),this);
        this.getLogger().info(ChatColor.AQUA+"---------------------");
        this.getLogger().info("插件名称："+ ChatColor.GOLD+"whitelist");
        this.getLogger().info("作者："+ChatColor.GOLD+"a——littlesquid");
        this.getLogger().info(ChatColor.RED+"私用插件，请勿转发倒卖！");
        this.getLogger().info(ChatColor.GREEN+"成功加载插件");
        this.getLogger().info(ChatColor.GREEN+"祝您游玩愉快");
        this.getLogger().info(ChatColor.AQUA+"---------------------");
    }

    @Override
    public void onDisable() {
        // Plugin shutdown logic
    }
}
